<?php
class SysException extends Exception
{
    function __construct($message)
    {
        parent::__construct($message);
    }
}

class BizException extends SysException
{
    function __construct($key, $msgs=array())
    {
        if (isset($msgs[$key]))
        {
            $message = $msgs[$key];
        }
        else if (empty($msgs))
        {
            $message = $key;
        }
        else
        {
            $message = gettext('err_no_such_exception_key');
        }
        parent::__construct($message);
    }
}

class InputParamsException extends BizException
{
	function __construct($message)
    {
        parent::__construct($message);
    }
}
